<?php /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/main'); ?>
<div class="span-18">

    <?php if(isset($this->breadcrumbs)):?>
    <?php /* $this->widget('zii.widgets.CBreadcrumbs', array(
          'links'=>$this->breadcrumbs,
        ));*/ ?>
    <!-- breadcrumbs -->
    <?php endif?>

    <div id="content">

        <?php
        $flashes = Yii::app()->user->getFlashes();
        if(!empty($flashes)): ?>
        <div class="messages">
            <?php foreach($flashes as $key => $flash): ?>
            <div class="alert alert-<?php echo $key?>">
                <?php echo CHtml::encode($flash); ?>
            </div>

            <?php endforeach;?>

        </div>
        <?php endif;?>


        <?php echo $content; ?>
    </div>
    <!-- content -->
</div>
<div class="span-6 last">
    <div id="sidebar">

        <?php
        $this->beginWidget('zii.widgets.CPortlet', array(
			'title'=>'Műveletek',
         'htmlOptions'=>array('class'=>'box'),
		   ));
	      	$this->widget('zii.widgets.CMenu', array(
			   'items'=>$this->menu,
			   'htmlOptions'=>array('class'=>''),
   		));

		$this->endWidget();
		?>

        <?php include('_sidebar.php'); ?>

    </div>
    <!-- sidebar -->
</div>
<?php $this->endContent(); ?>